<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>

<body>
<footer th:fragment="copy">
  &copy; 2011 The Good Thymes Virtual Grocery
  <div>
    <button onclick="cops()">点我啊</button>
  </div>
</footer>
</body>

</html>


<div th:fragment="passInfoJs">
  <script type="text/javascript">
  function cops() {
    console.log('被点击了')
  }
  </script>
</div>
